<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" trimDirectiveWhitespaces="true"%>
<%@ include file="/WEB-INF/views/include.inc.jsp"%>
<style>
	.role{
		margin-left:30px;
		height:30px;
		line-height:30px;
	}
</style>
<div class="pageContent">
	<div class="pageFormContent" layoutH="58">
		<fieldset>
		<legend>部门信息</legend>	
		<p>
			<label>名称：</label>
			<input type="text" name="name" class="input-medium required" value="${organization.name }" readOnly="readOnly"/>
		</p>
		<p class="nowrap">
			<label>描述：</label>
			<textarea name="description" cols="29" rows="3" maxlength="256" class="input-medium textarea-scroll" readOnly="readOnly" style="width: 320px;">${organization.description }</textarea>
		</p>	
		<p>
			<label>优先级：</label>
			<input type="text" name="priority" class="required" value="${organization.priority }" readOnly="readOnly"  style="width: 80px;"/>
			<span class="info">（越小越靠前）</span>
		</p>		
			
		<p>
			<label>上级部门：</label>
			<input type="text" name="sn" class="input-medium required" value="${organization.parent.name }" readOnly="readOnly"/>
		</p>
						
		</fieldset>
		<fieldset>
		<legend>部门角色</legend>
			<c:forEach var="item" items="${organization.organizationRoles}"> 
					<span class="role">${item.role.name}</span>
			</c:forEach>
			
		</fieldset>
	</div>
			
	<div class="formBar">
		<ul>
			<li><div class="button"><div class="buttonContent"><button type="button" class="close">关闭</button></div></div></li>
		</ul>
	</div>
</div>